function showMsg(msg,type) {
    // 参数设置，若用默认值可以省略以下面代
    toastr.options = {
        "closeButton": true,
        "debug": false,
        "progressBar": false,
        "positionClass": "toast-top-right",
        "onclick": null,
        "showDuration": "400",
        "hideDuration": "1000",
        "timeOut": "4000",
        "extendedTimeOut": "1000",
        "showEasing": "swing",
        "hideEasing": "linear",
        "showMethod": "fadeIn",
        "hideMethod": "fadeOut"
    };
    if(type=='success'){
        toastr.success(msg);
    }else if(type=='info'){
        toastr.info(msg);
    }else if(type=='warning'){
        toastr.warning(msg);
    }else if(type=='error'){
        toastr.error(msg);
    }
}